<?php foreach($articles as $key=>$article):?>
<?php if($article->post->view_users->id() && in_array($user->user_id, FUNC::setArrayByField(array('user_id'), $article->post->view_users, false))): ?>
<?php $read = 'n' ?>
<?php else: ?>
<?php $read = 'y' ?>
<?php endif ?>
<li class="<?php echo $read ?>">
    <a href="<?php echo url('articles/view', array('art_id'=>$article->art_id, 'col_id'=>$article->col_id, 'depart_id'=>$article->department->depart_id)) ?>"><?php echo h($article->title) ?></a>
        <em><?php echo FUNC::d($article->created, 'Y-m-d') ?></em>
</li>
<?php endforeach ?>
